Skip to content

Replace asset catalog colors with palette-based color system#27

Merged
dadachi merged 10 commits intomainfrom
refactor/use-palette-colors
Mar 31, 2026
Merged

Replace asset catalog colors with palette-based color system#27
dadachi merged 10 commits intomainfrom
refactor/use-palette-colors

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented Mar 31, 2026

Summary

  • Remove Colours/ folder from Assets.xcassets (43 colorsets) and UIColor+Extensions.swift
  • Add full palette-based Color+Extensions.swift with 60 palette colors, semantic color definitions, ShapeStyle conformance, and hex initializer
  • Replace all system color usages (.red, .white, .black, .blue) across 18 UI files with semantic palette colors (validationError, arrowBackground, serverForeground, etc.)

Test plan

  • Verify all tag states render with correct colors (idling=gray, preparing=yellow, customerScanned=red, completed=green, personal=blue, currentAccount=pink)
  • Verify form validation error text is visible on dark backgrounds
  • Verify scan views display correctly with semantic colors
  • Verify QR code generation still works
  • Verify no runtime color-not-found warnings in console

🤖 Generated with Claude Code

dadachi and others added 10 commits March 31, 2026 09:32
Remove Colours folder from Assets.xcassets (43 colorsets) and
UIColor+Extensions.swift. Add full palette-based Color+Extensions.swift
with 60 palette colors, semantic color definitions, ShapeStyle
conformance, and hex initializer. Replace all system color usages
(.red, .white, .black, .blue) across UI files with semantic palette
colors (validationError, arrowBackground, serverForeground, etc.).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wrap ErrorView, LoadingView, NeedAppUpdatesView, and OfflineView
content with GlassCard for consistent glassmorphism styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace solid background and rectangle overlays with ultraThinMaterial,
rounded corners, glass border, and shadow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace solid colored backgrounds with ultraThinMaterial in ScanView,
CompleteScanResultView, and ShowTagInfoScanResultView. Use semantic
colors for foreground styles and add validationError to failed views.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace lock, server, and customer GroupBox solid backgrounds with
ultraThinMaterial for consistent glassmorphism styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Apply Color.cardBackground.opacity(0.7) to listRowBackground across
all list views for a translucent effect.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use .toggleStyle(.button) instead of fixed frame width, and add
.lineLimit(1) to the label text.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restore CertificatePinningDelegate, Logger, Service, AppTabView,
Constants, and UtilityTest to their original state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit dfce273 into main Mar 31, 2026
2 checks passed
@dadachi dadachi deleted the refactor/use-palette-colors branch March 31, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant